﻿@model AuditModel.CandidateQuota

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/Admin/_EventSettingLayout.cshtml";
}

<h2>@AuditResources.CandidateQuota.ObjectName<text>设置</text></h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@AuditResources.UI.Create@AuditResources.CandidateQuota.ObjectName</legend>

        <div class="editor-label">
            @AuditResources.CandidateQuota.AnnualEventId
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.AnnualEventID, (SelectList)ViewBag.AnnualEventIDList)
            @Html.ValidationMessageFor(model => model.AnnualEventID)
        </div>
        <div class="editor-label">
            @AuditResources.CandidateQuota.SubjectId
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.SubjectID, (SelectList)ViewBag.SubjectID)
            @Html.ValidationMessageFor(model => model.SubjectID)
        </div>
        <div class="editor-label">
            @AuditResources.CandidateQuota.CountyCode
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.CountyCode, (SelectList)ViewBag.CountyCode)
            @Html.ValidationMessageFor(model => model.CountyCode)
        </div>
        <div class="editor-label">
            @AuditResources.CandidateQuota.Quota
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Quota)
            @Html.ValidationMessageFor(model => model.Quota)
        </div>
    </fieldset>
    <div>
<input type="submit" value="@AuditResources.UI.Save" />|
    @Html.RouteLink(AuditResources.UI.BackToList, "Default", new { controller = "CandidateQuota", action = "Index", id = ViewBag.AnnualEventId }, new { Class = "button" })
</div>
}




